package com.dc.project.entity.map;

import com.dc.project.entity.po.TemplateDetailAttachment;
import com.own.component.common.base.entity.BaseMap;
import com.own.constant.ConstantBeanSuffix;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.NonNull;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * TemplateDetailAttachmentMapVo
 *
 * @author chenxueli
 * @date 2025-03-19 13:23:08
 */
@Schema(title = "模板详情附件" + ConstantBeanSuffix.MAP_VO)
@Getter
@Setter
@ToString
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
public class TemplateDetailAttachmentMapVo extends BaseMap<TemplateDetailAttachment> implements Serializable {

    @Schema(title = "模板详情id")
    private Long templateDetailId;

    @Schema(title = "附件id")
    private Long attachmentId;

    @Schema(title = "附件名称")
    private String attachmentName;

    @Schema(title = "附件路径")
    private String attachmentPath;

    @Schema(title = "附件提示语")
    private String attachmentPrompt;

    /**
     * 构造方法
     *
     * @param entity 原对象
     */
    public TemplateDetailAttachmentMapVo(@NonNull TemplateDetailAttachment entity) {
        super(entity);
        this.templateDetailId = entity.getFkTemplateDetailId();
        this.attachmentId = entity.getFkAttachmentId();
        this.attachmentName = entity.getAttachmentName();
        this.attachmentPath = entity.getAttachmentPath();
        this.attachmentPrompt = entity.getAttachmentPrompt();
    }

}
